package com.dragon.modules.yuegou.entity.act;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.act.OffMemberActivityIsPrize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 会员参与活动表实体类<br>
 * 对应的表为：act_off_member_activity<br>
 * 
 * @author pbuilder generated
 * @date 2019-11-20 10:03:07
 * @company sgy
 * @version 2.0
 */
@TableName("act_off_member_activity")
@ApiModel(description = "会员参与活动表")
public class OffMemberActivityEntity {

    /**  */
	protected String id;

    /** 会员Id */
	@ApiModelProperty("会员Id")
	protected String memberId;

    /** 会员头像 */
	@ApiModelProperty("会员头像")
	protected String memberHead;

    /** 会员手机号码 */
	@ApiModelProperty("会员手机号码")
	protected String memberMobile;

    /** 活动Id */
	@ApiModelProperty("活动Id")
	protected String activityId;

    /** 奖品Id */
	@ApiModelProperty("奖品Id")
	protected String prizeId;

    /** 订单号 */
	@ApiModelProperty("订单号")
	protected String orderNo;

    /** 奖品级别 */
	@ApiModelProperty("奖品级别")
	protected String grade;

    /** 商品Id */
	@ApiModelProperty("商品Id")
	protected String skuId;

    /** [枚举]中奖状态：0-未中奖-NOT_WON、1-已中奖-HAS_WON、2-已领取-RECEIVED */
	@ApiModelProperty("[枚举]中奖状态：0-未中奖-NOT_WON、1-已中奖-HAS_WON、2-已领取-RECEIVED")
	protected OffMemberActivityIsPrize isPrize;

    /**  */
	protected LocalDateTime createdTime;

	/**
	 * 构造一个空会员参与活动表实体对象
	 */
	public OffMemberActivityEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个会员参与活动表实体对象
	 * 
	 * @param other 其它对象
	 */
	public OffMemberActivityEntity(OffMemberActivityEntity other){
		super();
     	this.id = other.id;
     	this.memberId = other.memberId;
     	this.memberHead = other.memberHead;
     	this.memberMobile = other.memberMobile;
     	this.activityId = other.activityId;
     	this.prizeId = other.prizeId;
     	this.orderNo = other.orderNo;
     	this.grade = other.grade;
     	this.skuId = other.skuId;
     	this.isPrize = other.isPrize;
     	this.createdTime = other.createdTime;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取会员Id
	 * 
	 * @return memberId 会员Id
	 */
	public String getMemberId() {
		return memberId;
	}
  	
	/**
	 * 设置会员Id
	 * 
	 * @param memberId 会员Id
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取会员头像
	 * 
	 * @return memberHead 会员头像
	 */
	public String getMemberHead() {
		return memberHead;
	}
  	
	/**
	 * 设置会员头像
	 * 
	 * @param memberHead 会员头像
	 */
	public void setMemberHead(String memberHead) {
		this.memberHead = memberHead;
	}

	/**
	 * 获取会员手机号码
	 * 
	 * @return memberMobile 会员手机号码
	 */
	public String getMemberMobile() {
		return memberMobile;
	}
  	
	/**
	 * 设置会员手机号码
	 * 
	 * @param memberMobile 会员手机号码
	 */
	public void setMemberMobile(String memberMobile) {
		this.memberMobile = memberMobile;
	}

	/**
	 * 获取活动Id
	 * 
	 * @return activityId 活动Id
	 */
	public String getActivityId() {
		return activityId;
	}
  	
	/**
	 * 设置活动Id
	 * 
	 * @param activityId 活动Id
	 */
	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	/**
	 * 获取奖品Id
	 * 
	 * @return prizeId 奖品Id
	 */
	public String getPrizeId() {
		return prizeId;
	}
  	
	/**
	 * 设置奖品Id
	 * 
	 * @param prizeId 奖品Id
	 */
	public void setPrizeId(String prizeId) {
		this.prizeId = prizeId;
	}

	/**
	 * 获取订单号
	 * 
	 * @return orderNo 订单号
	 */
	public String getOrderNo() {
		return orderNo;
	}
  	
	/**
	 * 设置订单号
	 * 
	 * @param orderNo 订单号
	 */
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	/**
	 * 获取奖品级别
	 * 
	 * @return grade 奖品级别
	 */
	public String getGrade() {
		return grade;
	}
  	
	/**
	 * 设置奖品级别
	 * 
	 * @param grade 奖品级别
	 */
	public void setGrade(String grade) {
		this.grade = grade;
	}

	/**
	 * 获取商品Id
	 * 
	 * @return skuId 商品Id
	 */
	public String getSkuId() {
		return skuId;
	}
  	
	/**
	 * 设置商品Id
	 * 
	 * @param skuId 商品Id
	 */
	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}

	/**
	 * 获取[枚举]中奖状态：0-未中奖-NOT_WON、1-已中奖-HAS_WON、2-已领取-RECEIVED
	 * 
	 * @return isPrize [枚举]中奖状态：0-未中奖-NOT_WON、1-已中奖-HAS_WON、2-已领取-RECEIVED
	 */
	public OffMemberActivityIsPrize getIsPrize() {
		return isPrize;
	}
  	
	/**
	 * 设置[枚举]中奖状态：0-未中奖-NOT_WON、1-已中奖-HAS_WON、2-已领取-RECEIVED
	 * 
	 * @param isPrize [枚举]中奖状态：0-未中奖-NOT_WON、1-已中奖-HAS_WON、2-已领取-RECEIVED
	 */
	public void setIsPrize(OffMemberActivityIsPrize isPrize) {
		this.isPrize = isPrize;
	}

	/**
	 * 获取
	 * 
	 * @return createdTime 
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdTime 
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

    public String toString() {
		return new StringBuilder().append("OffMemberActivityEntity{").
			append("id=").append(id).
			append(",memberId=").append(memberId).
			append(",memberHead=").append(memberHead).
			append(",memberMobile=").append(memberMobile).
			append(",activityId=").append(activityId).
			append(",prizeId=").append(prizeId).
			append(",orderNo=").append(orderNo).
			append(",grade=").append(grade).
			append(",skuId=").append(skuId).
			append(",isPrize=").append(isPrize).
			append(",createdTime=").append(createdTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public OffMemberActivityEntity copy() {
		return new OffMemberActivityEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 会员Id */
	public static final String COL_MEMBER_ID = "member_id";

    /** 会员头像 */
	public static final String COL_MEMBER_HEAD = "member_head";

    /** 会员手机号码 */
	public static final String COL_MEMBER_MOBILE = "member_mobile";

    /** 活动Id */
	public static final String COL_ACTIVITY_ID = "activity_id";

    /** 奖品Id */
	public static final String COL_PRIZE_ID = "prize_id";

    /** 订单号 */
	public static final String COL_ORDER_NO = "order_no";

    /** 奖品级别 */
	public static final String COL_GRADE = "grade";

    /** 商品Id */
	public static final String COL_SKU_ID = "sku_id";

    /** [枚举]中奖状态：0-未中奖-NOT_WON、1-已中奖-HAS_WON、2-已领取-RECEIVED */
	public static final String COL_IS_PRIZE = "is_prize";

    /**  */
	public static final String COL_CREATED_TIME = "created_time";
}
